package com.ls.markt.dao.admin;

import com.ls.markt.model.admin.Trophy;
import org.springframework.data.repository.query.Param;

import java.util.List;
import java.util.Map;

public interface TrophyMapper {

    List<Trophy> findAll();

    void save(@Param("trophy") Trophy trophy);

    void update(@Param("trophy") Trophy trophy);

    void deleteById(@Param("id") Long id);

    Trophy findById(@Param("id") Long id);

    List<Map<String,Object>> getTrophyByClub(@Param("clubId") Long clubId);

    List<Trophy> findByTrophyId(@Param("trophyId") Long trophyId);

}
